package org.shopen.puremvc.controller.theory
{
	import flash.events.Event;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	import org.shopen.puremvc.model.TheoryProxy;
	import org.shopen.puremvc.model.domain.theory.TheoryMeta;
	import org.shopen.puremvc.model.utils.CompleteDelegate;

	public class LoadTheoryCommand extends SimpleCommand
	{
		override public function execute(notification:INotification):void
		{
			var proxy : TheoryProxy = facade.retrieveProxy(TheoryProxy.NAME) as TheoryProxy;			
			proxy.loadPage(notification.getBody() as TheoryMeta, notification.getType());
		}
	}
}